package com.kaibes.core.base.thread;

public abstract class CountingThreadImpl extends RunThreadImpl implements CountingThread {

    private int taskCount, count;
    private long interval;
    
    public CountingThreadImpl(long interval, int taskCount) {
        this.interval = interval;
        this.taskCount = taskCount;
    }
    
    @Override
    public int getTaskCount() {
        return taskCount;
    }

    @Override
    public long getInterval() {
        return interval;
    }

    @Override
    public int getCount() {
        return count;
    }

    @Override
    public void setCount(int count) {
        this.count = count;
    }

}
